package com.gulimall.cart.server;

import com.gulimall.cart.vo.Cart;
import com.gulimall.cart.vo.CartItem;

import java.util.List;

/**
 * @Description
 * @Author lhj
 * @Date 2024/3/16 14:25
 */
public interface CartService {
    CartItem addToCart(Long skuId, Integer cartNum);

    CartItem getCrtItemBySkuId(Long skuId);

    Cart getCart();

    boolean changeChecked(Long skuId, Integer check);

    boolean cartChangeNum(Long skuId, Integer cartNum);

    boolean delCartItem(Long skuId);

    List<CartItem> getCheckCartItem();
}
